package com.tz.farmer.so;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class OperateInfoSo implements Serializable {
    /**
     *   CREATE TABLE `operate_info` (
     *   `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
     *   `o_type` varchar(255) DEFAULT NULL COMMENT '操作类型',
     *   `p_name` varchar(255) DEFAULT NULL COMMENT '产品名称',
     *   `address` varchar(255) DEFAULT NULL COMMENT '生产地块',
     *   `in_thing` varchar(255) DEFAULT NULL COMMENT '投入品',
     *   `people` varchar(255) DEFAULT NULL COMMENT '责任人',
     *   `o_time` datetime DEFAULT NULL COMMENT '操作时间',
     *   `p_info_id` int(11) DEFAULT NULL COMMENT '产品信息id',
     *    PRIMARY KEY (`id`)
     * )  ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='种植操作';
     */

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "id")
    private Integer id;
    @ApiModelProperty(value = "操作类型")
    private String oType;
    @ApiModelProperty(value = "产品名称")
    private String pName;
    @ApiModelProperty(value = "生产地块")
    private String address;
    @ApiModelProperty(value = "投入品")
    private String inThing;
    @ApiModelProperty(value = "责任人")
    private String people;
    @ApiModelProperty(value = "操作时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8" )
    private Date oTime;
    @ApiModelProperty(value = "产品信息id")
    private Integer pInfoId;


    private Integer currentPage;
    private Integer pageSize;
}
